﻿package component.validate.service;

import component.validate.exception.ValidateException;

public interface IValidateService {
	/**
	 * 保存时唯一性验证
	 * @param valFieldValues：需要验证的字段值(第一个元素是id值)
	 * @param conditionValues：条件值
	 * @return 返回提示
	 * @throws ValidateException
	 */
	public String checkSaveUnique(Object[] valFieldValues,Object[] conditionValues) throws ValidateException;
	
	/**
	 * 删除时关联性验证
	 * @param idFieldValues：需要验证的id值
	 * @param conditionValues：条件值
	 * @return 返回提示
	 * @throws ValidateException
	 */
	public String checkDeleteAssociation(Object[] idFieldValues,Object[] conditionValues) throws ValidateException;
}
